package com.bsj.travel.def.common.DTO.mqtt;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author yinhao
 * @version 1.0
 * @description Mqtt服务端消息下行给设备传输对象
 * @date 2024/1/16
 */
@Data
@NoArgsConstructor
public class MqttEventPublish<T> implements Serializable {
    private static final long serialVersionUID = 2164596772976159954L;
    /**
     * 采用deviceName&productKey
     */
    private String client;
    /**
     * 消息发布主题
     */
    private String topic;
    /**
     * 消息等级
     */
    private int qos;
    /**
     * 消息内容
     */
    private T data;
}
